package xrz.cuanbao.activity.yindao;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import xrz.cuanbao.R;
import xrz.cuanbao.activity.Act_TabMain;
import xrz.cuanbao.activity.Act_Welcome;
import xrz.cuanbao.utils.Utils;

public class Fragment3 extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.layout_fragment_yindao, null);
		ImageView imageView = (ImageView) view.findViewById(R.id.imageview);
		imageView.setImageResource(R.drawable.icon_yindao_3);
		imageView.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Utils.setLunched(getActivity());
				getActivity().startActivity(new Intent(getActivity(), Act_TabMain.class));
				getActivity().finish();
			}
		});
		return view;
	}
}
